/* Header 容器 */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 2rem 0;
}

.header-container h1 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.header-container input[type="text"] {
    padding: 0.5rem 0.75rem;
    /* 原 8px 12px */
    margin-top: 1rem;
    width: 80%;
    max-width: min(50%, 400px);
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.header-container input[type="text"]:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 0 0.125rem rgba(0, 123, 255, 0.25);
}

/* 搜索框额外样式 */
#searchBox {
    margin-bottom: 0.625rem;
    padding: 0.3125rem;
    width: 100%;
}

/* 高亮类 */
.highlight {
    color: rgb(241, 67, 4);
}

/* 文件列表样式 */
#fileList {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
    max-width: min(90%, 800px);
    line-height: 1.6;
}

#fileList li {
    border-bottom: 1px solid #eee;
    padding: 0.75rem 0;
    transition: background-color 0.2s ease;
}

#fileList li:last-child {
    border-bottom: none;
}

#fileList a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    display: block;
    position: relative;
    padding-left: 1.5rem;
    transition: color 0.2s ease;
}

#fileList a::before {
    content: "📄";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

#fileList a:hover {
    color: #007BFF;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .header-container h1 {
        font-size: 1.125rem;
    }

    .header-container input[type="text"] {
        font-size: 0.9375rem;
        padding: 0.625rem;
    }

    #fileList a {
        font-size: 1rem;
        padding-left: 1.3rem;
    }

    #fileList a::before {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header-container h1 {
        font-size: 1rem;
    }

    .header-container input[type="text"] {
        font-size: 0.875rem;
        padding: 0.5rem;
    }

    #fileList a {
        font-size: 0.95rem;
        padding-left: 1.1rem;
    }

    #fileList a::before {
        font-size: 1rem;
    }
}